[NTG-context] Re: start/stopregister

2024-04-26 Thread Hans Hagen
... That's because mkii is AI enhanced. Can you try this: \setuppapersize [A6] \starttext A\index{A} B \page \stopregister [index] [A] B> \stopregister [index] [B] \page \placeregister[index] \stoptext (Watch the [A] vs {A} usage where [A] is the label used for match

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/25/24 6:27 PM, Thomas A. Schmitz wrote: Ah, simple typo! After fixing abel to label, startregister gives the expected results again! Thanks Hans! I may be back with more register questions soon... And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
4) ; draw circle; draw p; label("$\overline{\text{A}}$",( 1.5cm,0)); label("$\text{A}$",(-1.5cm,0)); label.top("E",(0,1.85cm)); \stopMPcode Le jeu. 25 avr. 2024 à 16:55, Fabrice Couvreur a écr

[NTG-context] Re: start/stopregister

2024-04-25 Thread Thomas A. Schmitz
On 4/25/24 18:16, Hans Hagen wrote: Let's seen if we can make Thomas more of an expert as he's zooming in on the issue:     extendregister {     metadata   = { name =  name },     references = { abel =  label },     } Let me know if you't see

[NTG-context] Re: start/stopregister

2024-04-25 Thread Hans Hagen
ndregister { metadata = { name = name }, references = { abel = label }, } Let me know if you't see it. Possibly related: I noticed last week that mkxl does not update the legacy counter \pageno any more for every page. i'll chec

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
other question that came up while studying the source code: > What effect have \c!, \s!, and \v!? These commands exist a lot in the above > cited files. > > Gerion > > > Am Mittwoch, 17. April 2024, 15:44:12 MESZ schrieb Gerion Entrup: > > Hi, > > > > > The APS style is an

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Henning Hraban Ramm
: * state (start stop): what does this en-/disable? collecting entries? * label (yes no none Name): language dependent labels? as a prefix or what? You can use the key to set language dependent texts for the section counters in the list entry, with "yes" the values from the document

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Bruce Horrocks
t;> * state (start stop): what does this en-/disable? collecting entries? >> * label (yes no none Name): language dependent labels? as a prefix or what? >> * location (none, here): disable placement? when makes this sense? >> * symbol (one two three none default): where is this u

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Wolfgang Schuster
? collecting entries? * label (yes no none Name): language dependent labels? as a prefix or what? You can use the key to set language dependent texts for the section counters in the list entry, with "yes" the values from the document are used but you can also set whatever labe

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Henning Hraban Ramm
Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this en-/disable? collecting entries? * label (yes no none Name

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
tag-based citation, it might be better to start with > > something like the APA style. > > I'm kind of satisfied with the publication-list layout of the APS style so I > chose > this as a base. If it is simpler to start with the APA style, I can do that. > > My hope is that

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Duncan Hothersall
s this en-/disable? collecting entries? > * label (yes no none Name): language dependent labels? as a prefix or what? > * location (none, here): disable placement? when makes this sense? > * aligntitle (yes no): align which part to what? > * symbol (one two three none default): where i

[NTG-context] documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this en-/disable? collecting entries? * label (yes no none Name): language dependent labels? as a prefix or what

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
as a base. If it is simpler to start with the APA style, I can do that. My hope is that it is possible to just change the "label" that is used for referencing and keep everything else as is. > Is there some specification for your short tag-based citation style? biblatex implements this with the &

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
/ help Command/ high Command/ highlight Command/ label Command/ labellanguage Command/ labeltext Command/ labeltexts Command/ language Command/ leftlabeltext Command/ linenote Command/ low Command/ lowhigh Command/ lowmidhigh Command/ margindata Command/ mathcommand Command/ mathdoubleextensible Com

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-14 Thread Jim
dle = iopopen(command,"rb") -- already has flush > +local handle = iopopen(command,"r") -- already has flush > if handle then > local result = handle:read("*all") or "" > handle:close() > diff --git a/tex/context/base/mkxl/lp

[NTG-context] PDF, runner, and TikZ patches

2024-03-14 Thread Max Chernoff
is.lmt b/tex/context/base/mkxl/lpdf-mis.lmt index 0f21cf9..a9cfe02 100644 --- a/tex/context/base/mkxl/lpdf-mis.lmt +++ b/tex/context/base/mkxl/lpdf-mis.lmt @@ -510,7 +510,7 @@ local function featurecreep() return -- fatal error end local label = p.viewerpr

[NTG-context] Re: \in, \at, and labletext

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 13:05, Ursula Hermann wrote: > Dear List, > > In the Documentation IntroCTX_eng_s.pdf at page 170 , I found the two > examples with \in and \at, and also the label. Dear Uschi, I guess you mean (a link may be simpler than attaching a single page): https://raw.githubuse

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
8:19 am, Mikael Sundqvist wrote: > > > > > > Hi > > > > > > On Thu, Feb 15, 2024 at 1:03 AM Emanuel Han via ntg-context > > > wrote: > > > > > > > > Dear list, > > > > > > > > the attached .tex file is the minimal

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
gt; Dear list, > > > > > > the attached .tex file is the minimal working example we discussed today > > > in the online meeting. > > > > > > I realized that the approach of looping through k of p[k] is not fitting > > > my needs, because it's not flexible

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
top using p as an array, because with the layer sets approach we don't have a fixed order of the layers.> >> > So the definition of the layers would be something like> >> > picture layerA;> > layerA:=image(> > label("Word 1", z1);> > );> &g

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
at the approach of looping through k of p[k] is not fitting > > > my needs, because it's not flexible enough. > > > > > > I need another approach, one which works with layer sets. > > > > > > I would stop using p as an array, because with the

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
ting. > > > > I realized that the approach of looping through k of p[k] is not fitting my > > needs, because it's not flexible enough. > > > > I need another approach, one which works with layer sets. > > > > I would stop using p as an array, because with the lay

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
s with layer sets. > > > > > > > > I would stop using p as an array, because with the layer sets approach > > > > we don't have a fixed order of the layers. > > > > > > > > So the definition of the layers would be something like > > > > >

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
p[k] is not fitting > > > my needs, because it's not flexible enough. > > > > > > I need another approach, one which works with layer sets. > > > > > > I would stop using p as an array, because with the layer sets approach we > > > don't have

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
> So the definition of the layers would be something like > > > > picture layerA; > > layerA:=image( > > label("Word 1", z1); > > ); > > > > picture layerW; > > layerW:=image( > > label("Mot 2", z2); > > ); > > >

[NTG-context] Re: Working with layer sets with Metapost

2024-02-14 Thread Mikael Sundqvist
ing like > > picture layerA; > layerA:=image( > label("Word 1", z1); > ); > > picture layerW; > layerW:=image( > label("Mot 2", z2); > ); > > picture layerM; > layerM:=image( >

[NTG-context] Working with layer sets with Metapost

2024-02-14 Thread Emanuel Han via ntg-context
using p as an array, because with the layer sets approach we don't have a fixed order of the layers. So the definition of the layers would be something like picture layerA; layerA:=image( label("Word 1", z1); ); picture layerW; layerW:=image( label("Mot 2", z2); ); picture l

[NTG-context] Asking help for better way to make tickets.

2024-01-12 Thread Jeong Dal via ntg-context
]\startuseMPgraphic{ticket}{i,j}path p,q;pair A,B;p := unitsquare xyscaled (67mm,73mm);A := point 0.5 of p;B := point 2.5 of p;draw p;label(textext("Text"), .25A+.75B );label(textext("\tfd " & decimal (3*\MPvar{i}-\MPvar{j})), center p);label(textext("Text"

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image( label("Word 1", z1); ); p2:=image( label("Mot 2", z2); ); p3:=image( label("Parola 3", z3); ); \stopuseMPgraphic \starttext \dorecurse{3}{ % Frame \startMPpage[pagestate

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Dean Hung
stance. > > > > Sometimes text under the underbrace can become quite long, and should be > split into two (or more) lines. In the example below, "firstline" should > be the top line of the underbrace label, and "secondline" should be on the > lower line o

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Mikael Sundqvist
nd should be > split into two (or more) lines. In the example below, "firstline" should be > the top line of the underbrace label, and "secondline" should be on the lower > line of the underbrace label, but as it stands, both are printed on the same > line. > &g

[NTG-context] underbrace label across two lines

2023-12-19 Thread Dean Hung
ot; should be the top line of the underbrace label, and "secondline" should be on the lower line of the underbrace label, but as it stands, both are printed on the same line. \underbrace[mindepth=0.5cm]{\tf x+y+z}_{\vrule width 0pt height 0.5cm\relax\text{firstline secondline}} I have trie

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
[inchmercury=inHg] > > It's just a stupid example to show how to set the label value. Ok, got it. Thanks for your quick help, as usual! Marco ___ If your question is of interest to others as well, plea

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Wolfgang Schuster
how to set the label value. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
Dear Emanuel, > Le 2 déc. 2023 à 12:08, Emanuel Han via ntg-context a > écrit : > > Hi Mikael, > > here's a very simple mwe for the label(textext()) issue. On page 1, the text > "Word 1" should be drawn in position z1. On page 2, the same text in the sam

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
hic{base} > picture p[]; > path TheFrame ; > TheFrame := fullsquare scaled 5in ; > z1 = (60,40); > z2 = (40,90); > z3 = (10,70); > > p1:=image( > label("Word 1", z1); > ); > > p2:=image( > label("Mot 2", z2); > ); > > p3:=image(

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
( label("Word 1", z1); ); p2:=image( label("Mot 2", z2); ); p3:=image( label("Parola 3", z3); ); \stopuseMPgraphic \starttext \dorecurse{3}{ % Frame \startMPpage[pagestate=start] \includeMPgraphic{base} currentime := #1 ; % Just for learning : draw TheFrame

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
Hi Mikael, here's a very simple mwe for the label(textext()) issue. On page 1, the text "Word 1" should be drawn in position z1. On page 2, the same text in the same position should be visible, and the text "Mot 2" in position p2 should be added. And so on. \startMPinclusio

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
[rm] [serif] [notonaskharabic] [default] >> \stoptypescript >> >> \usetypescript[notonaskharabic] >> >> \setupbodyfont [RomanFont] >> >> \usecolors[crayola] >> >> \startMPinclusions >> >> picture p[]; >> path TheFra

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
ure p[]; > path TheFrame ; > TheFrame := fullsquare scaled 5in ; > > z0 = (0,0); > z1 = (60,40); > z2 = (40,90); > z3 = (10,70); > z4 = (30,50); > z5 = (90,70); > z6 = (-10,70); > > path A; A = z0..z1..z2..z3..z4 ; > pair AStartPoint; ASta

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
= (0,0); > z1 = (60,40); > z2 = (40,90); > z3 = (10,70); > z4 = (30,50); > z5 = (90,70); > z6 = (-10,70); > > path A; A = z0..z1..z2..z3..z4 ; > pair AStartPoint; AStartPoint = point 0 of A; > pair AEndPoint; AEndPoint = point 4 of A; > path B; B = z5..z6; > pair

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
t; BEndPoint = point 1 of B; path C; C = AStartPoint..AEndPoint; p1:=image( draw A withcolor red; ); p2:=image(draw A; label(lmt_outline [ text = "\JapaneseFont 日本語" ], AEndPoint);); p3:=image( label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, BStartPoint);

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
> z3 = (10,70); > z4 = (30,50); > z5 = (90,70); > z6 = (-10,70); > > path A; A = z0..z1..z2..z3..z4 ; > pair AStartPoint; AStartPoint = point 0 of A; > pair AEndPoint; AEndPoint = point 4 of A; > path B; B = z5..z6; > pair BStartPoint; BStartPoint = point 0 o

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
red; ); p2:=image( label(textext("\JapaneseFont 日本語"), AEndPoint); ); p3:=image( label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, AStartPoint); ); p4:=image( label(textext("\KoreanFont 한국어"), BStartPoint); ); p5:=image( label(textext("\RomanFont b

[NTG-context] Re: Metapost label text surrounded by white border

2023-11-20 Thread Emanuel Han via ntg-context
white 1mm thick border in a Metapost >> label. Here is my code, which doesn't draw the border at all and which draws >> the text in white instead of black (I'm using mkiv and mkxl version >> 2023.09.26 18:19 on osx-arm6): >> | >> |beginfig(1); >> %

[NTG-context] Re: Metapost label text surrounded by white border

2023-11-19 Thread Henning Hraban Ramm
Am 19.11.23 um 16:41 schrieb Emanuel Han via ntg-context: I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18

[NTG-context] Metapost label text surrounded by white border

2023-11-19 Thread Emanuel Han via ntg-context
I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18:19 on osx-arm6): beginfig(1); % Define the text and colors

[NTG-context] Re: numbered itemize list item label alignment

2023-10-19 Thread Csikos Bela
Eredeti levél Feladó: Aditya Mahajan Dátum: 2023 október 15 22:32:37Tárgy: Re: [NTG-context] Re: numbered itemize list item label alignmentCímzett: mailing list for ConTeXt users On Sun, 15 Oct 2023, Wolfgang Schuster wrote: > Csikos Bela schrieb am 15.10.2023 um 15

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Aditya Mahajan
On Sun, 15 Oct 2023, Wolfgang Schuster wrote: > Csikos Bela schrieb am 15.10.2023 um 15:51: > > Hello: > > > > I would like to make a long numbered itemize list, where the numbers > > increase up to three digits. > > I would like the numbered labels aligned to the right and the widest > > label's

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Wolfgang Schuster
Csikos Bela schrieb am 15.10.2023 um 15:51: Hello: I would like to make a long numbered itemize list, where the numbers increase up to three digits. I would like the numbered labels aligned to the right and the widest label's left side located at the left margin. I tried the below code but

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Pablo Rodriguez
On 10/15/23 15:51, Csikos Bela wrote: > Hello: > > I would like to make a long numbered itemize list, where the numbers > increase up to three digits. > I would like the numbered labels aligned to the right and the widest > label's left side located at the left margin. > I tried the below code but

[NTG-context] numbered itemize list item label alignment

2023-10-15 Thread Csikos Bela
margin. How can I fix it?Code:\showframe\starttext\startitemize[n,broad][itemalign=flushright]\dorecurse{250}{\item }\stopitemize\stoptextThe resulted pdf is attached as context-itemize-label-alignment.pdf.Thank you in advance,bcsikos context-itemize-label-alignment.pdf Description: Adobe PDF

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
of it compiles (for me) in LMTX. So I tried something different, e.g. \definelist[chapter] \setuplist[chapter][label=yes,distance=1.5cm,alternative=c,style=normal,before=\blank] \definelist[section] \setuplist[section] [textcommand=\setups{SecToc}] \setupcombinedlist [content]o [list={chapter

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Wolfgang Schuster
if it's empty) entry for each cell.     \startcontent ... \stopcontent     \startcaption \stopcaption 2. You create 15 cells but include 16 images. 3. When you need a combination without caption/label you can just use natural tables or extreme tables. Wolfgang

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
d around the advance \definenumber[ConcurrentTextSetCounter][prefix=no] \definenumber[ConcurrentTextGetCounter][prefix=no] \setnumber[ConcurrentTextSetCounter][0] \setnumber[ConcurrentTextGetCounter][0] % Map each label as global key/value pairs. \def\ConcurrentTextSet#1{% \incrementnumber[Conc

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
xtGetCounter][prefix=no] \setnumber[ConcurrentTextSetCounter][0] \setnumber[ConcurrentTextGetCounter][0] % Map each label as global key/value pairs. \def\ConcurrentTextSet#1{% \incrementnumber[ConcurrentTextSetCounter]% \setxvariable {concurrent} {text:\rawcountervalue[ConcurrentText

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Aditya Mahajan
; - a destination: This is a defined position within a PDF document; so > some position that a PDF viewer is able to jump to. In ConTeXt, you > can set such a position most of the time with the "reference" keyword. > In LaTeX, you use \label. > - a reference: This i

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Gerion Entrup
ble to jump to. In ConTeXt, you can set such a position most of the time with the "reference" keyword. In LaTeX, you use \label. - a reference: This is a link that you can click on and cause the PDF viewer to jump/scroll to the linked destination. In ConTeXt, you can use \in to creat

[NTG-context] Re: Suppress label in captions without suppressing number

2023-07-20 Thread Hans Hagen
On 7/20/2023 5:30 PM, denis.ma...@unibe.ch wrote: Hi, is there an option to suppress the label in captions without suppressing the number as well? I know, I can use \setuplabeltext[de][figure=,], but this will delete the label text globally... Is there a better way via \setupcaption

[NTG-context] Suppress label in captions without suppressing number

2023-07-20 Thread denis.maier
Hi, is there an option to suppress the label in captions without suppressing the number as well? I know, I can use \setuplabeltext[de][figure=,], but this will delete the label text globally... Is there a better way via \setupcaption? Best, Denis

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
st]lbl.dist := 3thick; for nopt = opt.first upto opt.last: if match_option (opt[nopt], "tension"): get_argument (opt[nopt], scantokens (opt[nopt]arg), vlist[nfrom]arc[vlist[nfrom]arc.last]tns); get_argument (opt[nop

Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-16 Thread Joaquín Ataz-López via ntg-context
(in the source file) the flow of the main text, instead of using the \footnote macro, I introduce the footnotes using \note[label] at the point where the call to the footnote should be placed, and in a separate place in the source file I write the text associated to the footnote using \footnotetext[label

Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-16 Thread Bruce Horrocks via ntg-context
> \footnote macro, I introduce the footnotes using \note[label] at the point > where the call to the footnote should be placed, and in a separate place in > the source file I write the text associated to the footnote using > \footnotetext[label]. > > This works quite well and allow

[NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)

2023-03-15 Thread Joaquín Ataz López via ntg-context
Good Morning to all list members. I am writing a document with very long footnotes, and in order not to break (in the source file) the flow of the main text, instead of using the \footnote macro, I introduce the footnotes using \note[label] at the point where the call to the footnote should

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
On 2/9/2023 10:42 PM, Bruce Horrocks via ntg-context wrote: I'm printing address labels. Sometimes an address has a long line that is too long to fit on the label with the result that it wraps. Instead of wrapping, I thought it would be nice to try and auto-scale the label and shrink it so

Re: [NTG-context] Problem using \scale

2023-02-09 Thread Henning Hraban Ramm via ntg-context
Am 09.02.23 um 22:42 schrieb Bruce Horrocks via ntg-context: I'm printing address labels. Sometimes an address has a long line that is too long to fit on the label with the result that it wraps. Instead of wrapping, I thought it would be nice to try and auto-scale the label and shrink it so

[NTG-context] Problem using \scale

2023-02-09 Thread Bruce Horrocks via ntg-context
I'm printing address labels. Sometimes an address has a long line that is too long to fit on the label with the result that it wraps. Instead of wrapping, I thought it would be nice to try and auto-scale the label and shrink it so that the long line just fits. I'm using \crlf to break

[NTG-context] Printing mailing list labels

2023-01-25 Thread Bruce Horrocks via ntg-context
) and uploaded them here. <https://context-address-labels.sourceforge.io/> Features: - full control over label content (can even differ from one label to the next if necessary) - easily use up a part-used sheet of labels to avoid waste - read address data from a CSV file - easily support dif

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Thank you so much Alan, that was exactly what I was looking for. Le ven. 20 janv. 2023 à 01:56, Alan Braslau a écrit : > On Thu, 19 Jan 2023 22:40:13 +0100 > Alexandre Christe via ntg-context wrote: > > > def labelT(expr pos)(text t) = > > ... > > enddef; > > vardef labelT@#(text t) = >

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alan Braslau via ntg-context
On Thu, 19 Jan 2023 22:40:13 +0100 Alexandre Christe via ntg-context wrote: > def labelT(expr pos)(text t) = > ... > enddef; vardef labelT@#(text t) = ... enddef ; Then you can pass on the "suffix" @# Alan ___

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Jeong Dal via ntg-context
Dear Alex, I don’t know what you want exactly. I hope that it may help. \startMPpage def myLabel(expr xpos, ypos)(text t) = dotlabel.top(textext(t),(xpos,ypos)); enddef; myLabel(1cm, 1cm, "Position"); \stoppage Good luck. Best regards,

[NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Dear list, Is there a way in a Meta(post)/(fun) macro to specify the label position as an argument? def labelT(expr pos)(text t) = ... enddef; Thanks a lot in advance, Alex ___ If your question is of interest

Re: [NTG-context] question about multimedia renderings

2023-01-16 Thread Pablo Rodriguez via ntg-context
t/StopRendering actions with the correct label. Hi Michal, many thanks for your reply. Your code fixes the "auto" option. At least with the following sample: \setupinteraction[state=start] \unexpanded\def\IncludeVideo[#1] {\definerenderingwindow[#1] [width=\tex

Re: [NTG-context] question about multimedia renderings

2023-01-15 Thread Michal Vlasák via ntg-context
type /Screen > /T > /Rect [ 12.353668 12.353668 437.54664 437.54664 ] > >> > endobj > > Could anyone be so kind to confirm the issue? AFAICT I based the auto option on the "Start/StopCurrentRendering" actions (2021-09-14) which we later agreed to remove (202

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Gavin via ntg-context
th version of \hpos to use the count as part of the label >> internally. I tried to do this with a regular ConTeXt counter, but had all >> sorts of mysterious, wrong behavior. When I switched to using a Lua counter, >> everything worked immediately. So, while there is

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Hans Hagen via ntg-context
On 12/7/2022 1:42 PM, Gavin via ntg-context wrote: Hi List, I solved my original problem 2, allowing me to reuse the same \hpos labels in different equations without interference. I added an equation counter and set up my custom math version of \hpos to use the count as part of the label

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Hans Hagen via ntg-context
On 12/7/2022 1:42 PM, Gavin via ntg-context wrote: Hi List, I solved my original problem 2, allowing me to reuse the same \hpos labels in different equations without interference. I added an equation counter and set up my custom math version of \hpos to use the count as part of the label

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Gavin via ntg-context
Hi List, I solved my original problem 2, allowing me to reuse the same \hpos labels in different equations without interference. I added an equation counter and set up my custom math version of \hpos to use the count as part of the label internally. I tried to do this with a regular ConTeXt

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
. The effect of having or not having %%    an associated .tuc file does seem a bit odd. Surely there is a way to get the number from a label reference that can then be converted to a numeral of choice. -- Rik (A year later) Is there still no way to do this without resorting to the .tuc-file

Re: [NTG-context] startTEXpage on A4

2022-10-10 Thread Willi Egger via ntg-context
gt; an environment like \startTEXpage? >>>> >>>> Can you be more concrete what your goal is, there are a few ways to solve >>>> your problem but with a few more information we can give you a good >>>> solution. >>> Say I want to print some stickers

Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Leah Neukirchen via ntg-context
I want to print some stickers or paper strips of non-fixed size, >> and get crop marks around them to know where to cut. >> With \setuppapersize and \setuparranging I can do this nicely if I >> know the size in advance, but in some cases I don't. > > \defin

Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Hans Hagen via ntg-context
less\ifdim\topoffset=\zeropoint \expandafter\page_boxes_apply_offset_indeed \orunless\ifdim\backoffset=\zeropoint \expandafter\page_boxes_apply_offset_indeed \else \expandafter\gobbleoneargument \fi} \protect \definepapersize [label] [width=6cm, height=25mm] \setu

Re: [NTG-context] parameters of (setup)externalfigure, conversions etc.

2022-08-12 Thread Henning Hraban Ramm via ntg-context
ulate the desired pixel size beforehand.) -*-*- Apart from converters, there are several parameters of \externalfigure that I don’t understand and thus can’t document in the Wiki; a few are even not yet documented in the interface files: * equalwidth/equalheight * s/sx/sy * xmax/ymax * prefi

[NTG-context] parameters of (setup)externalfigure, conversions etc.

2022-08-11 Thread Henning Hraban Ramm via ntg-context
are even not yet documented in the interface files: * equalwidth/equalheight * s/sx/sy * xmax/ymax * prefix, label, comment * bodyfont * mask * frames (≠ frame) * interaction, crossreference * resources * display * order * crop, transform * controls, preview: only related to video and thus obsole

Re: [NTG-context] m-graph label

2022-07-30 Thread John Kitzmiller via ntg-context
On Tue, Jul 26, 2022 at 2:10 PM Alan wrote: > On Thu, 21 Jul 2022 17:56:45 -0400 > John Kitzmiller wrote: > > > (Apologies for double-dipping, but usage direction for the > > least-squares fit extension in m-graph would be a gift.) > > The least-squares fit (to a polynomial) is a deterministic

Re: [NTG-context] m-graph label

2022-07-30 Thread John Kitzmiller via ntg-context
e X and Y axes: > > string Autoform_X ; Autoform_X := "@.0e" ; % or whatever you want ... > string Autoform_Y ; Autoform_Y := "@.0e" ; > > A few notes: > > Autoform_X and Autoform_Y are used if known, otherwise it falls back > on the string Autoform. > &g

Re: [NTG-context] m-graph label

2022-07-26 Thread Alan via ntg-context
On Thu, 21 Jul 2022 17:56:45 -0400 John Kitzmiller wrote: > (Apologies for double-dipping, but usage direction for the > least-squares fit extension in m-graph would be a gift.) The least-squares fit (to a polynomial) is a deterministic calculation, not an arbitrary non-linear search. As such,

Re: [NTG-context] m-graph label

2022-07-26 Thread Alan via ntg-context
On Thu, 21 Jul 2022 17:56:45 -0400 John Kitzmiller wrote: > > On Wed, Jul 20, 2022 at 9:48 AM Alan > > wrote: % Autoform is the format string used > > by autogrid % Autoform_X, Autoform_Y if defined, are used > > instead > > > > string Autoform ; Autoform = "%g"; >

Re: [NTG-context] m-graph label

2022-07-21 Thread John Kitzmiller via ntg-context
> On Sat, 16 Jul 2022 13:21:06 -0400 > John Kitzmiller via ntg-context wrote: > > > The horizontal axis label of mwe below has 0.0 (showing tenths; pdf > > attached; filename is mwe.tex). > > > > I expected it to show -1, 0, 1, 2, 3, (integers only). Can this

Re: [NTG-context] m-graph label

2022-07-20 Thread Alan via ntg-context
On Sat, 16 Jul 2022 13:21:06 -0400 John Kitzmiller via ntg-context wrote: > The horizontal axis label of mwe below has 0.0 (showing tenths; pdf > attached; filename is mwe.tex). > > I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be > formatted? > > % -1 1

[NTG-context] m-graph label

2022-07-16 Thread John Kitzmiller via ntg-context
The horizontal axis label of mwe below has 0.0 (showing tenths; pdf attached; filename is mwe.tex). I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be formatted? % -1 1 % 0 1 % 0 2 % 1 1 % 2 1 % 2 2 % 2 3 % 2 4 % 3 1 % 3 2 \usemodule[m-graph] \startMPpage[instance=graph, offset

Re: [NTG-context] error with sbl bibliography on latest LMTX

2022-07-09 Thread Joey McCollum via ntg-context
ative {inline}\def \currentbtxcategory {\btxfield > {category}}\def \currentbtxloctext > {\btxparameter {loctex > \normalexpanded > \Word {\fastsetup {btx:sbl:cite:inline} > }\doif {\btxparameter {righttext}}{\empty } {\btxperiod } > \strc_constructions_register_yes

[NTG-context] error with sbl bibliography on latest LMTX

2022-07-08 Thread Henning Hraban Ramm via ntg-context
xdef \currentconstructionbookmark {\detokenize \expandafter {\normalexpanded {\constructionparameter \c!title }}}\endgroup ... \strc_notations_start_reference_indeed [#1]#*#2->\strc_constructions_register [][\c!label ={\descriptionparameter \c!text },\c!reference

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 15:24 schrieb Fabrice L: Here are slightly different syntax that could be useful perhaps ? In the second one, the scaled parameter can be replaced easily with a variable, so you can decide and change the size of the label during the course of a picture. Thank you (all), I

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Fabrice L via ntg-context
cond one, the scaled parameter can be replaced easily with a variable, so you can decide and change the size of the label during the course of a picture. \starttext \startMPpage defaultfont := "\truefontname{Sans}"; defaultfontsize := \the\bodyfontsize; defaultscale := 0.5; label.to

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Hans Hagen via ntg-context
On 7/6/2022 1:36 PM, Henning Hraban Ramm via ntg-context wrote: Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode    label("normal label", (0, 0));

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
I've used something like the following before. \starttext \startMPcode label("normal label", (0, 0)); label("{\switchtobodyfont[3pt] tiny label}", (0, 18)); label("{\switchtobodyfont[72pt] giant label}", (0, -72)); \stopMPcode \stoptext Henning Hraban R

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode    label("normal label", (0, 0));    label("\setsmallbodyfont small label",

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Hans Hagen via ntg-context
On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode   label("normal label", (0, 0));   label("\setsmallbodyfont small label", (0, 18));   label("\setbigbodyfont big label", (0,

  1   2   3   4   5   6   7   8   9   10   >